/*清除内外边距*/
* {
    padding: 0;
    margin: 0;
}

/*确认版图中心位置*/
.w {
    width: 1200px;
    margin: auto;
}

body {
    background-color: #f3f5f7;
    /*height: 3000px;*/
}

/*删除无序列表小黑点*/
li {
    list-style: none;
}

/*去除a标签的下划线*/
a {
    text-decoration: none;
    color: black;
}

.clearfix:after {
    /*必须有content属性*/
    content: " ";
    /*转换为块级元素*/
    display: block;
    height: 0;
    /*清除*/
    clear: both;
    visibility: hidden;
}

/*CSS兼容IE6 7的写法*/
.clearfix {
    *zoom: 1;
}


.header {
    height: 42px;
    /*background-color: pink;*/
    /*上下外边距间距
     会层叠w里面的margin
    */
    margin: 30px auto;
}

.logo {
    /*浮动*/
    float: left;
    width: 198px;
    height: 42px;
    /*background-color: red;*/
}

.nav {
    /*浮动*/
    float: left;
    /*左外边距 距离logo边距*/
    margin-left: 60px;

}

.nav ui li {
    /*给li加浮动  li无序列表*/
    float: left;
    /*字体边距*/
    margin: 0 15px;
}

.nav ui li a {
    /*转换块级元素*/
    display: block;
    height: 42px;
    /*字体边距*/
    padding: 0 10px;
    /*文字垂直居中*/
    line-height: 35px;
}

/*鼠标经过a连接*/
.nav ui li a:hover {
    /*经过显示蓝色下边框*/
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff;

}

/*失败*/
/*.search input:hover {*/
/*    border: 1px solid #00a4ff;*/
/*}*/

/*搜索框*/
.search {
    /*浮动*/
    float: left;
    /*盒子宽*/
    width: 412px;
    /*盒子高*/
    height: 42px;

    /*左外边距*/
    margin-left: 70px;
}

/*输入框设置宽高*/
.search input {
    /*浮动*/
    float: left;
    width: 345px;
    height: 38px;
    /*边框样式颜色*/
    border: 1px solid #00a4ff;
    /*去除有边框*/
    border-right: 0px;
    /*字体颜色*/
    color: #8d9292;
    /*左内边距会撑大盒子所有需要减去width 15*/
    padding-left: 15px;
}

/*搜索按钮*/
.search button {
    /*浮动*/
    float: left;
    width: 50px;
    height: 40px;
    /*background-color: blue;*/
    border: 0;;
}

.user {
    /*右浮动*/
    float: right;
    line-height: 40px;
    margin-right: 15px;
    color: #777979;
}

.user img {
    /*文字在图片侧边居中对齐*/
    vertical-align: middle;
}

/*banner部分*/
.banner {
    height: 421px;
    background-color: #1b036b
}

.banner .w {
    height: 421px;
    background: url(images/banner2.png) no-repeat top center;
}

.subnav {
    float: left;
    height: 421px;
    width: 190px;
    background: rgba(0, 0, 0, 0.3);
}

.subnav ui li {
    height: 46px;
    line-height: 48px;
    padding: 0 20px
}

.subnav ui li a {
    float: left;
    color: white;
    font-size: 14px;
}

.subnav ui li a:hover {
    color: #00a4ff;
}

.course {
    float: right;
    width: 230px;
    height: 300px;
    background-color: #fff;
    /* 浮动的盒子不会有外边距合并的问题 */
    margin-top: 50px;
}

.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: white;
}

.bd {
    padding: 0 20px;
}

.bd ui li {
    padding: 13px 0;
    border-bottom: 1px solid #6d6b6b;
}

.bd ui li h4 {
    font-size: 16px;
    color: #4e4e4e;
}

.bd ui li p {
    font-size: 13px;
    color: #929292;
}

.bd .more {
    /*转换为块级元素*/
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    text-align: center;
    margin-top: 7px;
    line-height: 38px;
    color: #00a4ff;
    font-size: 16px;
    font-weight: 700;

}

/*精品推荐模块*/
.goods {
    line-height: 60px;
    height: 60px;
    background-color: white;
    /*上边距*/
    margin-top: 10px;
    box-shadow: 0px 10px 10px -4px rgba(0, 0, 0, .3);
}

.goods h3 {
    padding-left: 30px;
    color: #00a4ff;
    float: left;
    font-weight: 700;
}

.goods ui li {
    float: left;
}

.goods ui li a {
    margin: 0 30px;
    font-size: 16px;
    color: #050505;
    padding: 0px 15px;
    border-left: 2px solid #ccc;
}

.mod {
    float: right;
    font-size: 14px;
    margin-right: 30px;
    color: #00a4ff;
}

.box {
    margin-top: 30px;
}

.box-header {
    height: 45px;
}

.box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
}

.box-hd a {
    float: right;
    font-size: 13px;
    color: #a5a5a5;
    margin-top: 5px;
    margin-right: 30px;
}

.box .last {
    margin-right: 0;
}

/*.box-bd ul {*/
/*    white: 1225px;*/
/*}*/

.box-bd ul li {
    position: relative;
    float: left;
    height: 270px;
    width: 228px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;
}

.box-bd ul li > img {
    width: 100%;
}

.box-bd ul li em {
    position: absolute;
    top: 5px;
    right: -4px;
}

.box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 15px;
    color: #050505;
    font-weight: 400;
}

.box-bd .info {
    margin: 0 20px 0 25px;
    font-size: 10px;
    color: #999;

}

.box-bd .info a {
    /*margin: 0 20px 0 25px;*/
    font-size: 13px;
    color: #f85c00;
}

.footer {
    height: 200px;
    background-color: #fff;
}

.footer .w {
    padding-top: 35px;
}

.copyright {
    float: left;
}

.copyright p {
    font-size: 12px;
    color: #666;
    margin: 20px 0 15px 0;
}

.copyright .app {
    display: block;
    float: left;
    width: 118px;
    height: 33px;
    border: 1px solid #00a4ff;
    color: #00a4ff;
    font-size: 14px;
    line-height: 33px;
    text-align: center;

}

.links {
    float: right;
}

.links dl {
    float: left;
    margin-left: 100px;
}

.links dl dt {
    font-size: 18px;
    /*color: #333;*/
    margin-bottom: 10px;
}

.links dl dd a {
    font-size: 13px;
    color: #333;
    /*margin-bottom: 5px;*/
}
